//
//  CosMeticListTableViewCell.m
//  DA_V
//
//  Created by 中亿世联前台 on 15/4/24.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "CosMeticListTableViewCell.h"
#import "ProductListModel.h"
#import "UIImageView+WebCache.h"


@implementation CosMeticListTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setMeticlistViewData:(id)data{

 
    if ([[data class] isSubclassOfClass:[ProductListModel class]]) {
        
        ProductListModel *prodctlistmodel = data;
        
        [self.shopimage sd_setImageWithURL:[NSURL URLWithString:prodctlistmodel.ThumbPath] placeholderImage:nil];
        self.shopingTitle.text = prodctlistmodel.ProductName;
        self.oldPrace.text = [NSString stringWithFormat:@"%d",prodctlistmodel.MarketPriceAmount.intValue];//prodctlistmodel.MarketPriceAmount;
        self.nowPrace.text = [NSString stringWithFormat:@"%d",prodctlistmodel.DiscountPriceAmount.intValue];//prodctlistmodel.DiscountPriceAmount;
        self.describe.text = [NSString stringWithFormat:@"%@",prodctlistmodel.Content];
    }
    
    
}
@end
